package org.graduates.webapp.actions.course;

import org.graduates.webapp.actions.BaseAction;
import org.projects.graduates.domain.HomeworkHandin;

/**
 * 写作业
 * @author Administrator
 *
 */
public class FillInHomeworkAction extends BaseAction {
	private static final long serialVersionUID = 4381032166381887154L;

	private long tid = 0L;

	private long hhid = 0L;

	private HomeworkHandin handin;

	public String execute() {

		if (0L == hhid || 0L == tid) {
			return INPUT;
		}

		handin = HomeworkHandin.get(HomeworkHandin.class, hhid);

		if (null == handin) {
			return INPUT;
		}

		return SUCCESS;
	}

	public HomeworkHandin getHandin() {
		return handin;
	}

	public void setHandin(HomeworkHandin handin) {
		this.handin = handin;
	}

	public long getTid() {
		return tid;
	}

	public void setTid(long tid) {
		this.tid = tid;
	}

	public long getHhid() {
		return hhid;
	}

	public void setHhid(long hhid) {
		this.hhid = hhid;
	}

}
